<?php
date_default_timezone_set('Asia/Shanghai');
ini_set('display_errors','On');
error_reporting(E_ALL);
define('M_START_MEMORY'    ,  memory_get_usage());
define('M_START_TIME'      ,  microtime(true));

define("ROOT",dirname(dirname(__FILE__)));
define("AppDir",ROOT.DIRECTORY_SEPARATOR."App");
define("MDir",AppDir.DIRECTORY_SEPARATOR."model");
define("VDir",AppDir.DIRECTORY_SEPARATOR."view");
define("CDir",AppDir.DIRECTORY_SEPARATOR."controller");
define("FDir",AppDir.DIRECTORY_SEPARATOR."func");
define("CacheDir",ROOT.DIRECTORY_SEPARATOR."cache");
define("ConfigDir",AppDir.DIRECTORY_SEPARATOR."config");

define("version","1.0.1");

!defined("Debug")?define("Debug",true):null;
require_once FDir.DIRECTORY_SEPARATOR."func.php";
//读取配置文件
Config("config");
//网址类型 1 静态  2 path_info 3字符串 参数
//参数2 需要php版本>=8.0
if(!defined("UrlType")){
    define("UrlType",Config(".urlType")?:1);
}
//开启session
startSession();

//嵌入自定义全局文件
func("c-__init");









